package com.sitech.ibnms.c3p.domain;

import java.io.Serializable;
import java.util.Date;

public class C3pTaskResult implements Serializable {
    private String taskId;
    private String scheduleId;
    private String execId;
    private int processId;
    private String activityId;
    private Date dbTime;
    private int rowNo;
    private String execContent;
    private String contentType;
    private String extUnitId;
    private int serialNo;
    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getScheduleId() {
        return scheduleId;
    }

    public void setScheduleId(String scheduleId) {
        this.scheduleId = scheduleId;
    }

    public String getExecId() {
        return execId;
    }

    public void setExecId(String execId) {
        this.execId = execId;
    }

    public int getProcessId() {
        return processId;
    }

    public void setProcessId(int processId) {
        this.processId = processId;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public Date getDbTime() {
        return dbTime;
    }

    public void setDbTime(Date dbTime) {
        this.dbTime = dbTime;
    }

    public int getRowNo() {
        return rowNo;
    }

    public void setRowNo(int rowNo) {
        this.rowNo = rowNo;
    }

    public String getExecContent() {
        return execContent;
    }

    public void setExecContent(String execContent) {
        this.execContent = execContent;
    }

    public int getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(int serialNo) {
        this.serialNo = serialNo;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public C3pTaskResult(String taskId, String scheduleId, String execId, int processId, String activityId,int serialNo,String extUnitId) {
        this.taskId = taskId;
        this.scheduleId = scheduleId;
        this.execId = serialNo+"";
        this.processId = processId;
        this.activityId = activityId;
        this.serialNo = serialNo;
        this.extUnitId = extUnitId;
    }
    public C3pTaskResult(C3pTaskResult taskResult,int rowNo,String execContent,String contentType) {
        this.taskId = taskResult.getTaskId();
        this.scheduleId = taskResult.getScheduleId();
        this.execId = taskResult.getExecId();
        this.processId = taskResult.getProcessId();
        this.activityId = taskResult.getActivityId();
        this.extUnitId = taskResult.getExtUnitId();
        this.rowNo = rowNo;
        this.execContent = execContent;
        this.contentType = contentType;
    }

    public String getExtUnitId() {
        return extUnitId;
    }

    public void setExtUnitId(String extUnitId) {
        this.extUnitId = extUnitId;
    }
}
